<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopOrderEmsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_order_ems', function (Blueprint $table) {
            $table->increments('id');
            $table->integer("shop_order_id")->default(0)->comment("商城订单ID");
            $table->string("shipping_code",20)->default('')->comment("快递单号");
            $table->string("shipping_company",20)->default('')->comment("快递公司");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shop_order_ems');
    }
}
